package cn.edu.scau.cmi.chenzehan.adapterPattern.objAdpater;

public class PowerAdapter implements AC110 {

	 private AC220 ac;
	 public PowerAdapter(AC220 ac220) {
		 this.ac = ac220;
	}
	@Override
	public int output110() {
		int output=0;
		if(ac!=null) {
			output = ac.output220()/2;
		}
		return output;
	}
   public int output220() {
	   return ac.output220();
   }
}
